# retrive

from . import embedding, vectordb

def retrive(query: str, db_path: str, top_k: int = 5) -> list[str]:
    query_embedding = embedding.embedding([query])[0]
    results = vectordb.query_from_db(db_path,query_embedding,top_k)
    return results["documents"][0]
